/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.trainning.longph.btvn1;

import java.util.Scanner;

/**
 *
 * @author Long Pham
 */
public class Bai5 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n;
        System.out.println("Mời nhập n");
        n = sc.nextInt();
        int a = 1, b = 1, c = 1;
        int i = 1;
        while (i < n) {
            c = a + b;
            a = b;
            b = c;
            i++;
        }
        System.out.println(c);
    }
}
